.NET: Added GettingStarted example demonstrating Dapr as an agent provider - #1615
Merged
Conversation
…I.Extensions implementation of IChatClient using Dapr as the inference backend provider - in this example, using Ollama Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a new sample demonstrating how to create an AIAgent using Dapr as the inference backend provider with Ollama. The sample follows the existing pattern of agent provider demonstrations and includes comprehensive setup instructions.
Key Changes:
- Added a new Agent_With_Dapr sample project with documentation and component configuration
- Registered the sample in the solution file and package dependencies
- Updated the AgentProviders README to include the new Dapr sample
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| dotnet/samples/GettingStarted/AgentProviders/README.md | Added entry for the new Dapr sample |
| dotnet/samples/GettingStarted/AgentProviders/Agent_With_Dapr/README.md | Created documentation with prerequisites and setup instructions |
| dotnet/samples/GettingStarted/AgentProviders/Agent_With_Dapr/Program.cs | Implemented sample demonstrating Dapr chat client integration |
| dotnet/samples/GettingStarted/AgentProviders/Agent_With_Dapr/Components/conversation-ollama.yaml | Added Dapr component configuration for Ollama |
| dotnet/samples/GettingStarted/AgentProviders/Agent_With_Dapr/Agent_With_Dapr.csproj | Created project file with necessary dependencies |
| dotnet/agent-framework-dotnet.slnx | Registered new project in solution |
| dotnet/Directory.Packages.props | Added Dapr.AI.Microsoft.Extensions package reference |
…EADME.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
|
@stephentoub @DeagleGross Can we get some eyes on this? Thanks! |
crickman
requested review from
markwallace-microsoft,
stephentoub and
westey-m
November 17, 2025 21:19
stephentoub
reviewed
Dec 9, 2025
westey-m
reviewed
Dec 30, 2025
westey-m
had a problem deploying
to
integration
December 30, 2025 15:27 — with
GitHub Actions
Failure
westey-m
had a problem deploying
to
integration
December 30, 2025 15:27 — with
GitHub Actions
Failure
That's odd the IDE added it a second time. Co-authored-by: westey <164392973+westey-m@users.noreply.github.com>
WhitWaldo
had a problem deploying
to
integration
December 30, 2025 17:04 — with
GitHub Actions
Failure
This was referenced Jul 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added example demonstrating creating an AIAgent using the Microsoft.AI.Extensions implementation of
IChatClientusing Dapr as the inference back-end provider pointing to Ollama in this example.Motivation and Context
I'm the maintainer of the Dapr .NET SDK. In the last major release, I added a package to our SDK release to support
IChatClientfromMicrosoft.Extensions.AIusing Dapr's Conversation building block. As Microsoft only recently released this agentic framework, I was reading through the examples and saw a great opportunity to list the newly minted package as a sample agent implementation to the existing list.Description
This doesn't change anything about the framework itself and only adds an agent provider to the existing list of samples. I've included a sample Dapr component file, provided instructions in the README at the project level explaining prerequisites and setup instructions and have otherwise minimized other changes (e.g. adding a line to the central package management under the appropriate section).
The other itself should otherwise be quite straightforward and keeping in line with the demonstration used in other similar samples.
Contribution Checklist